package com.ewerp.mud.core.session.sockets;

import static org.junit.Assert.assertEquals;

import java.io.IOException;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.ewerp.mud.core.lifecycle.ILifecycleListener;
import com.ewerp.mud.core.session.ISessionFactory;
import com.ewerp.mud.core.session.MockSessionManager;
import com.ewerp.mud.misc.MockServerSocket;

public class TestEwerpSocketSessionFactory {
    ISessionFactory sessionFactory = null;
    MockServerSocket serverSocket = null;
    MockSessionManager sessionManager = null;
    
    @Before
    public void setup() throws IOException {
        serverSocket = new MockServerSocket();
        serverSocket.setSessionsToCreate(2);
        
        sessionManager = new MockSessionManager();
        
        sessionFactory = new EwerpSocketSessionFactory();
        ((EwerpSocketSessionFactory)sessionFactory).setServerSocket(serverSocket);
        sessionFactory.registerSessionManager(sessionManager);
    }
    
    @After
    public void breakDown() {
        
    }
    
    @Test
    public void test() {
    }

}
